home *** CD-ROM | disk | FTP | other *** search
- Path: god.bel.alcatel.be!nlev00!barnhoorn
- From: barnhoorn@nlev00 ()
- Newsgroups: comp.lang.c,comp.sys.amiga.programmer
- Subject: Re: pointer conversion error
- Date: 26 Mar 1996 07:25:49 GMT
- Organization: Alcatel Bell
- Distribution: world
- Message-ID: <4j865t$npa@btmpjg.god.bel.alcatel.be>
- References: <4j39n1$mh4@news.xs4all.nl> <676.6658T1354T436@mistral.co.uk>
- Reply-To: barnhoorn@nlev00 ()
- NNTP-Posting-Host: 138.203.178.61
- X-Newsreader: mxrn 6.18-10
-
-
- Path: nlev00!barnhoorn
- Newsgroups: comp.lang.c,comp.sys.amiga.programmer
- From: barnhoorn@nlev00 ()
- Distribution: world
- X-Newsreader: mxrn 6.18-10
- References: <4j39n1$mh4@news.xs4all.nl> <676.6658T1354T436@mistral.co.uk>
- Reply-To: barnhoorn@nlev00 ()
- Organization: Alcatel Bell
- Subject: Re: pointer conversion error
-
- In article <676.6658T1354T436@mistral.co.uk>, ghira@mistral.co.uk (Adam Atkinson) writes:
- >On 24-Mar-96 10:55:29, Falstaff said:
- >>ghira@mistral.co.uk (Adam Atkinson) writes:
- >
- >>>my c compiler (SAS/C version 6.56) creates a warning about the following:
- >
- >>> printf("%u %u %u \n", i, l, h);
- >
- >>>three.c 36 Warning 104: conversion from pointer to const/volatile to pointer
- >>>to non-const/volatile
- >
- >>>What am I doing wrong? i,l and h are unsigned longs.
- >
- >>Seems like the printf() prototype is missing. #include <stdio.h>
- >
- >actually, it turns out I should have used %lu not %u. oops
- >
- .when this is true, then the compiler is actually checking the
- string you give as first parameter of printf() !!????? Very strange.
-
- --
- ---------------------------------------------------------------------------
- Jaco Barnhoorn barnie@xs4all.nl
- Software Test Engineer barnhoorn%nlev00@btmv56.se.bel.alcatel.be
- Alcatel Telecom Systems
- Rijswijk, The Netherlands
- ---------------------------------------------------------------------------
-
-
-